<div style="text-align: center; max-height: 28.13rem; margin-top: auto;margin-bottom: auto;">
  <!--2024.11.05 新增进度条UI begin-->
  <ng-container *ngIf="type === 'uploadFile'">
    <div class="pop-bg" >
      <p class="progress-title">上传中</p>
      <div class="progress-box">
        <ion-progress-bar mode="md" class="progress-bar"
          value="{{this.appGlobalService.totalFileUploadingNum}}"></ion-progress-bar>
        <span class="progress-label"
          *ngIf="getInterger(appGlobalService.totalFileUploadingNum * 100 - 0)!==0">{{getInterger(appGlobalService.totalFileUploadingNum
          * 100 - 0)}} %</span>
      </div>
      <div appDebounceClick (debounceClick)="appGlobalService.uploadVideCompletedCallBack('')" class="closeUploadFile">
        取消上传
      </div>
    </div>
  </ng-container>
  <!--2024.11.05 新增进度条UI end-->

  <ng-container *ngIf="type === 'update'">
    <div class="pop-bg">

      <ng-container *ngIf="appTypeCustom==='LJ'">
        <img class="update-img" src="assets/icon/pop_img_upgrade-fw@3x.png">
      </ng-container>
      <ng-container *ngIf="appTypeCustom!=='LJ'">
        <img class="update-img" src="assets/icon/pop_img_upgrade@3x.png">
      </ng-container>
      <p class="update-title">发现新版本(V{{tagData.version}})</p>
      <!-- <textarea  rows="5" class="update-content" [innerHTML]="tagData.updateItems">
      </textarea> -->
      <ul class="update-content">
        <li class="item" *ngFor="let item of tagData.updateItems">
          {{item}}
        </li>
      </ul>
      <div appDebounceClick (debounceClick)="update()" class="update-btn">立即更新</div>
      <!-- <div appDebounceClick (debounceClick)="update()" class="showdow-update"></div> -->

      <!--
        8月30日产品确认不显示
        <p class="update-time"> wifi环境下只需要不到{{tagData.downloadTime}}秒哦</p>
      -->
    </div>
  </ng-container>

  <ng-container *ngIf="type === 'permission'">
    <div class="pop-bg-permission">
      <img class="update-img" src="assets/icon/pop_img_location@3x.png" alt="">
      <p class="update-title">{{tagData.title}}</p>
      <p class="update-text">{{tagData.content}}</p>
      <div appDebounceClick (debounceClick)="openPermission()" class="update-btn">去开启</div>
      <!-- <div appDebounceClick (debounceClick)="openPermission()" class="showdow"></div> -->
    </div>
  </ng-container>

  <!--新增一个隐私权限弹窗-->
  <ng-container *ngIf="type === 'privacy'">
    <div class="pop-bg-privacy">
      <p class="update-title-js">{{tagData.title}}</p>
      <div class="scroll-content">
        <p class="update-text-js" [innerHTML]="tagData.content | parseStyle"></p>
      </div>
      <!-- <div  class="update-btn">同意</div> -->
      <div class="btn-box">
        <button class="dis-agree-btn" appDebounceClick (debounceClick)="disAgree()">不同意</button>
        <button class="agree-btn" appDebounceClick (debounceClick)="agree()">同意</button>
      </div>
      <a appDebounceClick (debounceClick)="gotoPrivacyPage()">《{{tagData.company}}隐私权政策》</a>
    </div>
  </ng-container>


  <!--新增一个隐私权限弹窗-->
  <ng-container *ngIf="type === 'deviceInfo'">
    <div class="pop-bg-privacy">
      <p class="update-title-js">服务授权</p>
      <div class="scroll-content">
        <p class="update-text-js">是否同意极光推送获取一下权限</p>
        <p class="update-text-js">* 获取您的设备信息</p>
        <p class="update-text-js">* 获取您的位置信息</p>
        <p class="update-text-js">* 获取您的读写外部存储</p>
        <p class="update-text-js">* 查看您的网络连接状态</p>
        <p class="update-text-js">用于为您推送服务提醒消息等</p>
        <p class="update-text-js">极光推送隐私协议</p>
        <p class="update-text-link" appDebounceClick
          (debounceClick)="gotoJGPrivacy('https://www.jiguang.cn/license/privacy')">
          https://www.jiguang.cn/license/privacy</p>
        <p class="update-text-js">点击同意即表示您已阅读极光隐私政策，请详细阅读相关条款。</p>
      </div>
      <div class="btn-box">
        <button class="dis-agree-btn" appDebounceClick (debounceClick)="disAgreeDevice()">不同意</button>
        <button class="agree-btn" appDebounceClick
          (debounceClick)="agreeDevice(tagData.device,tagData.imei)">同意</button>
      </div>
    </div>
  </ng-container>

  <ng-container *ngIf="type !== 'privacy' && type!== 'deviceInfo' && type!== 'uploadFile'">
    <img appDebounceClick (debounceClick)="close()" [ngClass]="{'update-close-hide': tagData.force === 'true'}"
      class="update-close" src="assets/icon/pop_icon_close@3x.png" alt="">
  </ng-container>
</div>